package com.wnxy.sddfp.bank.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 托管代理 测试
 */
@RestController
public class TestBankController {

    // 通过@Value注解获取yml配置文件的值
    @Value("${server.port}")
    private String port;

    @GetMapping("/bank/test")
    public String showPort() {
        System.out.println("port = " + port);
        return "测试结果";
    }
}
